const Router = require('@koa/router');
// Koa 的路由在被 use 时是无法指定前缀的, 需要在定义时就指定前缀
const router = Router({
    prefix: '/api/todayContent'
});

const todayContentController = require('../controllers/todayContentController');

router.post('/weather',todayContentController.weather);
router.get('/horoscope',todayContentController.horoscope);
router.get('/greetings',todayContentController.greetings);
module.exports = router.routes();